import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom'

import './App.scss'
import Layout from '@/pages/Layout'
import Login from './pages/Login'


const App = () => {
  return <Router>
    <div className='app'>
      <Switch>
        <Route path='/' exact render={() => <Redirect to='/home' />}></Route>
        <Route path='/home' component={Layout}></Route>
        <Route path='/login' component={Login}></Route>
      </Switch>
    </div>

  </Router>
}

export default App